package org.blame.lotterysystem.controller.param;


import jakarta.validation.Valid;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

@Data
public class CreateActivityParam implements Serializable {
    /**
     * 活动名称
     */
    @NotBlank(message = "活动名不能为空")
    private String activityName;

    /**
     * 活动描述
     */
    @NotBlank(message = "活动的描述不能为空")
    private String description;

    /**
     * 活动奖品列表参数
     */
    @NotEmpty(message = "活动和奖品的关联表不能为空")
    @Valid
    private List<ActivityPrizeListParam> activityPrizeList;

    /**
     * 活动用户列表参数
     */
    @NotEmpty(message = "活动和用户的关联表不能为空")
    @Valid
    private List<ActivityUserListParam> activityUserList;
}
